﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Square:Shape
    {
        //正方形
        private int sideLen;

        public int SideLen { get => sideLen; set => sideLen = value; }
        
        public override void GetArea(int a)
        {
            //Console.WriteLine("请输入正方形的边长");
            //int l = int.Parse(Console.ReadLine());
            
           int s = sideLen * sideLen;
            Console.WriteLine("正方形的面积是"+s);
        }
    }
}
